@import "@fontsource/fira-mono";

:root {
  --font-body: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --font-mono: "Fira Mono", monospace;
  --color-bg-0: rgb(202, 216, 228);
  --color-bg-1: hsl(209, 36%, 86%);
  --color-bg-2: hsl(224, 44%, 95%);
  --color-theme-1: #ff3e00;
  --color-theme-2: #4075a6;
  --column-width: 42rem;
  --column-margin-top: 4rem;
  font-family: var(--font-body);
  color: var(--text-primary);
}

body {
  min-height: 100vh;
  margin: 0;
  background-attachment: fixed;
  background-color: var(--bg-primary);
  background-size: 100vw 100vh;
  background-image: var(--background-gradient-image);
  /* Ensure there is no overscroll.*/
  /* See: https://github.com/tauri-apps/tauri/issues/4309 */
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* #region style-scrollbars */
/* Themed scrollbars */
*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
*::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
*::-webkit-scrollbar-thumb {
  /* Style the control for scrolling up and down */
  background: var(--text-onprimary);
  border: 3px solid transparent;
  border-radius: 8px;
  box-shadow: inset 0 0 0 7px var(--text-onprimary);
}
*::-webkit-scrollbar-button {
  /* Hide buttons that appear at the top and bottom of scrollbars */
  display: none;
}
/* #endregion style-scrollbars */

h1,
h2,
p {
  font-weight: 400;
}

p {
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: default;
}

a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 2rem;
  text-align: center;
}

h2 {
  font-size: 1rem;
}

pre {
  font-size: 16px;
  font-family: var(--font-mono);
  background-color: rgba(255, 255, 255, 0.45);
  border-radius: 3px;
  box-shadow: 2px 2px 6px rgb(255 255 255 / 25%);
  padding: 0.5em;
  overflow-x: auto;
  color: var(--text-primary);
}

.text-column {
  display: flex;
  max-width: 48rem;
  flex: 0.6;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
}

input,
button {
  font-size: inherit;
  font-family: inherit;
}

button:focus:not(:focus-visible) {
  outline: none;
}

@media (min-width: 720px) {
  h1 {
    font-size: 2.4rem;
  }
}

.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: auto;
  margin: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}
